package com.itheima.page;

import com.github.pagehelper.PageHelper;
import com.itheima.entity.QueryPageBean;

/**
 * @author TanLin
 * @date 2019/11/13 16:27
 * @className com.itheima.page
 * @projectName health_parent
 */

/**
 * 抽取分页信息
 */
public class FindPage {
    public  static String findPage(QueryPageBean queryPageBean) {
        //查询参数
        String queryString = queryPageBean.getQueryString();
        if (queryString != null && queryString.length() > 0) {
            queryString = "%" + queryString + "%";
        }
        return queryString;
    }
}
